package com.jyxd.web.dao.assessment;

import com.jyxd.web.data.assessment.TemperatureData;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface TemperatureDataDao {

    /**
     * 新增体温单记录
     *
     * @param temperatureData
     * @return boolean
     */
    boolean insert(TemperatureData temperatureData);

    /**
     * 更新一条体温单记录
     *
     * @param temperatureData
     * @return boolean
     */
    boolean update(TemperatureData temperatureData);

    /**
     * 查询唯一一条数据
     *
     * @param map
     * @return
     */
    TemperatureData queryOne(Map<String, Object> map);

    /**
     * 查询数据列表
     *
     * @param map
     * @return
     */
    List<TemperatureData> queryList(Map<String, Object> map);

}
